<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
    String path = request.getContextPath();
%>
<html>
<head>
    <title>Title</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width">
    <link rel="stylesheet" href="<%=path%>/static/public/js/jquery.mobile-1.4.5.min.css" />
    <script src="<%=path%>/static/public/js/jquery-1.11.1.min.js"></script>
    <script src="<%=path%>/static/public/js/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<div data-role="header">
    <h1>${paper.paperTitle}</h1>
</div>
<form action="<%=path%>/paper/save" method="post" onsubmit="return Check();">
    <input type="hidden" name="paperId" value="${paper.paperId}">
    <div data-role="content">
    <c:forEach items="${paper.questions}" var="question">
        <fieldset data-role="controlgroup" id="${question.questionId}">
            <legend>${question.questionText}</legend>
            <c:forEach items="${question.answers}" var="answer">
                <label for="${answer.answerId}">${answer.answerText}</label>
                <input type="checkbox" name="answer" id="${answer.answerId}" value="${answer.answerId}">
            </c:forEach>
        </fieldset>
    </c:forEach>
    </div>
    <button type="submit">提交</button>
</form>

<div data-role="footer">
    <h1>&copy子建：大家都是抄来抄去,请把版权去掉</h1>
</div>

</body>
</html>
